package com.jie.server.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jie.server.modules.system.entity.Dict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description: 字典表Mapper接口
 * @author: xiaojie
 * @since: 2024/12/13 0013
 */
@Mapper
public interface DictMapper extends BaseMapper<Dict> {

    /**
     * 查询字典表
     * @param dictId 字典表主键
     * @return 字典表
     */
    Dict selectDictByDictId(Long dictId);

    /**
     * 查询字典表列表
     * @param dict 字典表
     * @return 字典表集合
     */
    List<Dict> selectDictList(@Param(value = "dict") Dict dict);

}
